[INFO] cloning repository https://github.com/LegendSaber/design_pattern
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LegendSaber/design_pattern" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegendSaber%2Fdesign_pattern", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegendSaber%2Fdesign_pattern'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7221ae7258c5fb75ca03517dd824021ad855fb77
[INFO] fixing LegendSaber/design_pattern against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLegendSaber%2Fdesign_pattern" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/LegendSaber/design_pattern
[INFO] finished tweaking git repo https://github.com/LegendSaber/design_pattern
[INFO] tweaked toml for git repo https://github.com/LegendSaber/design_pattern written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/LegendSaber/design_pattern on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/LegendSaber/design_pattern already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr]   |
[INFO] [stderr]   = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr]   = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr]   = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0
[INFO] running `Command { std: "docker" "start" "4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr]   |
[INFO] [stderr]   = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr]   = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr]   = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr]   |
[INFO] [stderr]   = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr]   = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr]   = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating adapter_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating bridge_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating builder_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating chain_of_responsibility_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating command_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating factory_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating flyweight_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating interpreter_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating iterator_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating mediator_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating memento_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating null_object_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating observer_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating prototype_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating proxy_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating singleton_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating state_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating strategy_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating template_pattern/Cargo.toml from 2021 edition to 2024
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr]   |
[INFO] [stderr]   = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr]   = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr]   = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] [stderr]    Compiling libc v0.2.154
[INFO] [stderr]     Checking builder_pattern v0.1.0 (/opt/rustwide/workdir/builder_pattern)
[INFO] [stderr]     Checking bridge_pattern v0.1.0 (/opt/rustwide/workdir/bridge_pattern)
[INFO] [stderr]     Checking singleton_pattern v0.1.0 (/opt/rustwide/workdir/singleton_pattern)
[INFO] [stderr]     Checking strategy_pattern v0.1.0 (/opt/rustwide/workdir/strategy_pattern)
[INFO] [stderr]     Checking mediator_pattern v0.1.0 (/opt/rustwide/workdir/mediator_pattern)
[INFO] [stderr]    Migrating bridge_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating singleton_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:17:16
[INFO] [stdout]    |
[INFO] [stdout] 17 |             if INSTANCE.is_none() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             INSTANCE.as_ref().unwrap()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Migrating strategy_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking chain_of_responsibility_pattern v0.1.0 (/opt/rustwide/workdir/chain_of_responsibility_pattern)
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:17:16
[INFO] [stdout]    |
[INFO] [stdout] 17 |             if INSTANCE.is_none() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             INSTANCE.as_ref().unwrap()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking null_object_pattern v0.1.0 (/opt/rustwide/workdir/null_object_pattern)
[INFO] [stderr]    Migrating builder_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking iterator_pattern v0.1.0 (/opt/rustwide/workdir/iterator_pattern)
[INFO] [stderr]     Checking state_pattern v0.1.0 (/opt/rustwide/workdir/state_pattern)
[INFO] [stderr]    Migrating mediator_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking adapter_pattern v0.1.0 (/opt/rustwide/workdir/adapter_pattern)
[INFO] [stderr]    Migrating chain_of_responsibility_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating null_object_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking observer_pattern v0.1.0 (/opt/rustwide/workdir/observer_pattern)
[INFO] [stderr]    Migrating iterator_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking interpreter_pattern v0.1.0 (/opt/rustwide/workdir/interpreter_pattern)
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]    Migrating state_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating adapter_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking template_pattern v0.1.0 (/opt/rustwide/workdir/template_pattern)
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Migrating observer_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking command_pattern v0.1.0 (/opt/rustwide/workdir/command_pattern)
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Migrating interpreter_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking memento_pattern v0.1.0 (/opt/rustwide/workdir/memento_pattern)
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking prototype_pattern v0.1.0 (/opt/rustwide/workdir/prototype_pattern)
[INFO] [stderr]    Migrating template_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating command_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking factory_pattern v0.1.0 (/opt/rustwide/workdir/factory_pattern)
[INFO] [stderr]    Migrating memento_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking proxy_pattern v0.1.0 (/opt/rustwide/workdir/proxy_pattern)
[INFO] [stderr]    Migrating prototype_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Checking flyweight_pattern v0.1.0 (/opt/rustwide/workdir/flyweight_pattern)
[INFO] [stderr]    Migrating factory_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating proxy_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating flyweight_pattern/src/main.rs from 2021 edition to 2024
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.70s
[INFO] [stderr] crater-edition-check: adapter_pattern v0.1.0 (/opt/rustwide/workdir/adapter_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: bridge_pattern v0.1.0 (/opt/rustwide/workdir/bridge_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: builder_pattern v0.1.0 (/opt/rustwide/workdir/builder_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: chain_of_responsibility_pattern v0.1.0 (/opt/rustwide/workdir/chain_of_responsibility_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: command_pattern v0.1.0 (/opt/rustwide/workdir/command_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: factory_pattern v0.1.0 (/opt/rustwide/workdir/factory_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: flyweight_pattern v0.1.0 (/opt/rustwide/workdir/flyweight_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: interpreter_pattern v0.1.0 (/opt/rustwide/workdir/interpreter_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: iterator_pattern v0.1.0 (/opt/rustwide/workdir/iterator_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: mediator_pattern v0.1.0 (/opt/rustwide/workdir/mediator_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: memento_pattern v0.1.0 (/opt/rustwide/workdir/memento_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: null_object_pattern v0.1.0 (/opt/rustwide/workdir/null_object_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: observer_pattern v0.1.0 (/opt/rustwide/workdir/observer_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: prototype_pattern v0.1.0 (/opt/rustwide/workdir/prototype_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: proxy_pattern v0.1.0 (/opt/rustwide/workdir/proxy_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: singleton_pattern v0.1.0 (/opt/rustwide/workdir/singleton_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: state_pattern v0.1.0 (/opt/rustwide/workdir/state_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: strategy_pattern v0.1.0 (/opt/rustwide/workdir/strategy_pattern) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: template_pattern v0.1.0 (/opt/rustwide/workdir/template_pattern) updating edition from 2021 to 2024
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2024 which implies `resolver = "3"`
[INFO] [stderr]   |
[INFO] [stderr]   = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr]   = note: to use the edition 2024 resolver, specify `workspace.resolver = "3"` in the workspace root's manifest
[INFO] [stderr]   = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] [stderr]     Checking interpreter_pattern v0.1.0 (/opt/rustwide/workdir/interpreter_pattern)
[INFO] [stderr]     Checking builder_pattern v0.1.0 (/opt/rustwide/workdir/builder_pattern)
[INFO] [stderr]     Checking singleton_pattern v0.1.0 (/opt/rustwide/workdir/singleton_pattern)
[INFO] [stderr]     Checking adapter_pattern v0.1.0 (/opt/rustwide/workdir/adapter_pattern)
[INFO] [stderr]     Checking factory_pattern v0.1.0 (/opt/rustwide/workdir/factory_pattern)
[INFO] [stderr]     Checking mediator_pattern v0.1.0 (/opt/rustwide/workdir/mediator_pattern)
[INFO] [stderr]     Checking flyweight_pattern v0.1.0 (/opt/rustwide/workdir/flyweight_pattern)
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> flyweight_pattern/src/flyweight.rs:49:45
[INFO] [stdout]    |
[INFO] [stdout] 49 |         self.circle_map.get(&color).unwrap().clone()
[INFO] [stdout]    |                                             ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `Box<dyn Shape>` does not implement `Clone`, so calling `clone` on `&Box<dyn Shape>` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout] 49 -         self.circle_map.get(&color).unwrap().clone()
[INFO] [stdout] 49 +         self.circle_map.get(&color).unwrap()
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Wrapper` is never constructed
[INFO] [stdout]  --> builder_pattern/src/builder.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct Wrapper;
[INFO] [stdout]   |        ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Bottle` is never constructed
[INFO] [stdout]   --> builder_pattern/src/builder.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | struct Bottle;
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Burger` is never constructed
[INFO] [stdout]   --> builder_pattern/src/builder.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 | struct Burger;
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ColdDrink` is never constructed
[INFO] [stdout]   --> builder_pattern/src/builder.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct ColdDrink;
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking bridge_pattern v0.1.0 (/opt/rustwide/workdir/bridge_pattern)
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:17:16
[INFO] [stdout]    |
[INFO] [stdout] 17 |             if INSTANCE.is_none() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             INSTANCE.as_ref().unwrap()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking memento_pattern v0.1.0 (/opt/rustwide/workdir/memento_pattern)
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:17:16
[INFO] [stdout]    |
[INFO] [stdout] 17 |             if INSTANCE.is_none() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> singleton_pattern/src/single_object.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |             INSTANCE.as_ref().unwrap()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `singleton_pattern` (bin "singleton_pattern" test) due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> flyweight_pattern/src/flyweight.rs:49:45
[INFO] [stdout]    |
[INFO] [stdout] 49 |         self.circle_map.get(&color).unwrap().clone()
[INFO] [stdout]    |                                             ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `Box<dyn Shape>` does not implement `Clone`, so calling `clone` on `&Box<dyn Shape>` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout] 49 -         self.circle_map.get(&color).unwrap().clone()
[INFO] [stdout] 49 +         self.circle_map.get(&color).unwrap()
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `singleton_pattern` (bin "singleton_pattern") due to 2 previous errors
[INFO] running `Command { std: "docker" "inspect" "4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0", kill_on_drop: false }`
[INFO] [stdout] 4e906831552b6c7be07e5b3282127fc911ce94d856ad5eb1566fbbbf21507ce0
